import { ApiProperty } from '@quick-toolkit/http';
import { Typed } from '@quick-toolkit/class-transformer';

export class PageDto {
  @ApiProperty({
    required: false,
    description: '当前页',
    in: 'query',
    type: 'integer',
  })
  @Typed(Number)
  public pageNum?: number = 1;

  @ApiProperty({
    required: false,
    description: '条数',
    in: 'query',
    type: 'integer',
  })
  @Typed(Number)
  public pageSize?: number = 10;
}
